import { request } from 'umi'
import {IAddProjectListItem} from '@/utils/interface'
//获取专业列表
export const getSelectMajorStationList = () => {
  return request('/sxpt/label/selectMajorStationList')
}
//获取行业列表
export const getSelectTradeList = () => {
  return request('/sxpt/label/selectTradeList')
}
//保存后第一次的数据
export const getProject = (data:IAddProjectListItem) => {
  return request('/sxpt/project',{
    method:'POST',
    data
  })
}
//保存后回显的数据
export const getProject2 = (versionId:string) => {
  return request('/sxpt/project/selectProjectByVserionId',{
    params:{
      versionId
    }
  })
}
//获取下方树的数据
export const getBriefTree = () => {
  return request('/sxpt/brief/selectBriefTree')
}
//编辑页面项目资源
export let getProjectResources = () => {
  return request('/sxpt/projectResource/selectResourceTree')
}
//编辑页面前置项目
export let getLeadProject = () => {
  return request('/sxpt/frontPositionProject/selectPushProjectList')
}